<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html>
<head>
    <title>易买网 - 首页</title>
    <link type="text/css" rel="stylesheet" href="/css/style.css"/>
    <script type="text/javascript" src="/scripts/function.js"></script>
</head>

<body>
<%@ include file="/WEB-INF/common/head.jsp"%>
<div id="position" class="wrap">
    您现在的位置：<a href="/index">易买网</a> &gt; <a href="product-list.html">图书音像</a> &gt; 图书
</div>
<div id="main" class="wrap">
    <%@ include file="/WEB-INF/common/left.jsp" %>
    <div id="product" class="main">
        <h1>${product.name}</h1>
        <div class="infos">
            <div class="thumb"><img src="${product.fileName}"/></div>
            <div class="buy">
                <p>商城价：<span class="price">￥${product.price}</span></p>
                <p>库　存：<c:if test="${product.stock > 0}">有货(库存${product.stock}件)</c:if>
                    <c:if test="${product.stock == 0}">无货</c:if></p>
                <div class="button"><input type="button" name="button" value=""/><a
                        href="/product/shopping_cart?id=${product.id}">放入购物车</a></div>
            </div>
            <div class="clear"></div>
        </div>
        <div class="introduce">
            <h2><strong>商品详情</strong></h2>
            <div class="text">
                ${product.description}<br/>
            </div>
        </div>
    </div>
    <div class="clear"></div>
</div>
<%@ include file="/WEB-INF/common/footer.jsp" %>
</body>
</html>
